package BinaryTree;

public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree =new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.creatTree();
        //注意这里给的字符串 一定是一个 合法的前序遍历的字符串


        System.out.println("==========前序============");
        binaryTree.PreOder(root);
        System.out.println();
        System.out.println("==================中序=================");
        binaryTree.InOder(root);
        System.out.println();
        System.out.println("============后序=============");
        binaryTree.PostOder(root);
        System.out.println();
    }
}
